package com.comut.crud.util;

/**
 * Issue: IFL-1566
 *
 * @author vitor
 */
public class SystemProperties {

    public static String getMongoHostnamePrimary() {
        return System.getProperty("mongoHostnamePrimary");
    }

    public static Integer getMongoPortPrimary() {
        return Integer.parseInt(System.getProperty("mongoPortPrimary"));
    }

    public static String getMongoHostnameSecondary1() {
        return System.getProperty("mongoHostnameSecondary1");
    }

    public static Integer getMongoPortSecondary1() {
        return Integer.parseInt(System.getProperty("mongoPortSecondary1"));
    }

    public static String getMongoHostnameSecondary2() {
        return System.getProperty("mongoHostnameSecondary2");
    }

    public static Integer getMongoPortSecondary2() {
        return Integer.parseInt(System.getProperty("mongoPortSecondary2"));
    }

    public static String getMongoDatabase() {
        return System.getProperty("mongoDatabase");
    }
    
    public static String getGeoCodingURL() {
        // example value: http://10.0.0.140:3000/geocoding/reverse?latitude=@lat&longitude=@lon
        return System.getProperty("com.comut.crud.geocodingURL");
    }    
}
